==================================================
Batch in queue: 'Graphics', (0)
Fence: 'fence-0'
--------------------------------------------------
name: 'command-buffer'
{

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  HOST ---> COPY
      access: HOST_WRITE ---> TRANSFER_WRITE
  ----------

  CopyBuffer
    src: 'buffer-1'
    dst: 'buffer-36'
      copy [0, 36) ---> [0, 36)
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  COPY ---> INDEX_INPUT | VERTEX_ATTRIBUTE_INPUT
      access: TRANSFER_WRITE ---> INDEX_READ | VERTEX_ATTRIBUTE_READ
    ImageBarrier:
      name:    'image-40'
      stage:   FRAGMENT_SHADER ---> FRAGMENT_SHADER
      access:  0 ---> SHADER_SAMPLED_READ
      layout:  UNDEFINED ---> SHADER_READ_ONLY_OPTIMAL
  ----------

  BeginRenderPass2
    renderPass:  'render-pass-1'
    color attachment:
      view:    'image-view-32 (image-40)'
      image:   'image-40'
      layout:  SHADER_READ_ONLY_OPTIMAL ---> COLOR_ATTACHMENT_OPTIMAL
      loadOp:  CLEAR
    dependency:
      subpass: External ---> 0
      stage:   FRAGMENT_SHADER ---> COLOR_ATTACHMENT_OUTPUT
      access:  SHADER_SAMPLED_READ ---> COLOR_ATTACHMENT_READ | COLOR_ATTACHMENT_WRITE
  ----------

  BindVertexBuffers
    [0] buffer: 'buffer-36', offset: 0
  ----------

  Draw

  EndRenderPass2
    attachment:
      view:    'image-view-32 (image-40)'
      image:   'image-40'
      layout:  COLOR_ATTACHMENT_OPTIMAL ---> SHADER_READ_ONLY_OPTIMAL
      storeOp: STORE
    dependency:
      subpass: 0 ---> External
      stage:   COLOR_ATTACHMENT_OUTPUT ---> FRAGMENT_SHADER
      access:  COLOR_ATTACHMENT_READ | COLOR_ATTACHMENT_WRITE ---> SHADER_SAMPLED_READ
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    ImageBarrier:
      name:    'image-40'
      stage:   FRAGMENT_SHADER ---> COPY
      access:  SHADER_SAMPLED_READ ---> TRANSFER_READ
      layout:  SHADER_READ_ONLY_OPTIMAL ---> TRANSFER_SRC_OPTIMAL
  ----------

}
--------------------------------------------------
name: 'command-buffer'
{
  CopyImageToBuffer
    src:       'image-40'
    srcLayout: TRANSFER_SRC_OPTIMAL
    dst:       'buffer-34'
      copy { off:(0, 0, 0), ext:(800, 600, 1), COLOR } ---> { [0, 1920000) }
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  COPY ---> HOST
      access: TRANSFER_WRITE ---> HOST_READ
  ----------

}
==================================================
==================================================
Batch in queue: 'Graphics', (0)
Fence: 'fence-0'
--------------------------------------------------
name: 'command-buffer'
{

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  HOST ---> COPY
      access: HOST_WRITE ---> TRANSFER_WRITE
  ----------

  CopyBuffer
    src: 'buffer-2'
    dst: 'buffer-37'
      copy [0, 36) ---> [0, 36)
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  COPY ---> INDEX_INPUT | VERTEX_ATTRIBUTE_INPUT
      access: TRANSFER_WRITE ---> INDEX_READ | VERTEX_ATTRIBUTE_READ
    ImageBarrier:
      name:    'image-41'
      stage:   FRAGMENT_SHADER ---> FRAGMENT_SHADER
      access:  0 ---> SHADER_SAMPLED_READ
      layout:  UNDEFINED ---> SHADER_READ_ONLY_OPTIMAL
  ----------

  BeginRenderPass2
    renderPass:  'render-pass-1'
    color attachment:
      view:    'image-view-33 (image-41)'
      image:   'image-41'
      layout:  SHADER_READ_ONLY_OPTIMAL ---> COLOR_ATTACHMENT_OPTIMAL
      loadOp:  CLEAR
    dependency:
      subpass: External ---> 0
      stage:   FRAGMENT_SHADER ---> COLOR_ATTACHMENT_OUTPUT
      access:  SHADER_SAMPLED_READ ---> COLOR_ATTACHMENT_READ | COLOR_ATTACHMENT_WRITE
  ----------

  BindVertexBuffers
    [0] buffer: 'buffer-37', offset: 0
  ----------

  Draw

  EndRenderPass2
    attachment:
      view:    'image-view-33 (image-41)'
      image:   'image-41'
      layout:  COLOR_ATTACHMENT_OPTIMAL ---> SHADER_READ_ONLY_OPTIMAL
      storeOp: STORE
    dependency:
      subpass: 0 ---> External
      stage:   COLOR_ATTACHMENT_OUTPUT ---> FRAGMENT_SHADER
      access:  COLOR_ATTACHMENT_READ | COLOR_ATTACHMENT_WRITE ---> SHADER_SAMPLED_READ
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    ImageBarrier:
      name:    'image-41'
      stage:   FRAGMENT_SHADER ---> COPY
      access:  SHADER_SAMPLED_READ ---> TRANSFER_READ
      layout:  SHADER_READ_ONLY_OPTIMAL ---> TRANSFER_SRC_OPTIMAL
  ----------

}
--------------------------------------------------
name: 'command-buffer'
{
  CopyImageToBuffer
    src:       'image-41'
    srcLayout: TRANSFER_SRC_OPTIMAL
    dst:       'buffer-35'
      copy { off:(0, 0, 0), ext:(800, 600, 1), COLOR } ---> { [0, 1920000) }
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  COPY ---> HOST
      access: TRANSFER_WRITE ---> HOST_READ
  ----------

}
==================================================
==================================================
Batch in queue: 'Graphics', (0)
Fence: 'fence-0'
--------------------------------------------------
name: 'command-buffer'
{

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  HOST ---> COPY
      access: HOST_WRITE ---> TRANSFER_WRITE
  ----------

  CopyBuffer
    src: 'buffer-1'
    dst: 'buffer-38'
      copy [0, 36) ---> [0, 36)
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  COPY ---> INDEX_INPUT | VERTEX_ATTRIBUTE_INPUT
      access: TRANSFER_WRITE ---> INDEX_READ | VERTEX_ATTRIBUTE_READ
    ImageBarrier:
      name:    'image-42'
      stage:   FRAGMENT_SHADER ---> FRAGMENT_SHADER
      access:  0 ---> SHADER_SAMPLED_READ
      layout:  UNDEFINED ---> SHADER_READ_ONLY_OPTIMAL
  ----------

  BeginRenderPass2
    renderPass:  'render-pass-1'
    color attachment:
      view:    'image-view-34 (image-42)'
      image:   'image-42'
      layout:  SHADER_READ_ONLY_OPTIMAL ---> COLOR_ATTACHMENT_OPTIMAL
      loadOp:  CLEAR
    dependency:
      subpass: External ---> 0
      stage:   FRAGMENT_SHADER ---> COLOR_ATTACHMENT_OUTPUT
      access:  SHADER_SAMPLED_READ ---> COLOR_ATTACHMENT_READ | COLOR_ATTACHMENT_WRITE
  ----------

  BindVertexBuffers
    [0] buffer: 'buffer-38', offset: 0
  ----------

  Draw

  EndRenderPass2
    attachment:
      view:    'image-view-34 (image-42)'
      image:   'image-42'
      layout:  COLOR_ATTACHMENT_OPTIMAL ---> SHADER_READ_ONLY_OPTIMAL
      storeOp: STORE
    dependency:
      subpass: 0 ---> External
      stage:   COLOR_ATTACHMENT_OUTPUT ---> FRAGMENT_SHADER
      access:  COLOR_ATTACHMENT_READ | COLOR_ATTACHMENT_WRITE ---> SHADER_SAMPLED_READ
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    ImageBarrier:
      name:    'image-42'
      stage:   FRAGMENT_SHADER ---> COPY
      access:  SHADER_SAMPLED_READ ---> TRANSFER_READ
      layout:  SHADER_READ_ONLY_OPTIMAL ---> TRANSFER_SRC_OPTIMAL
  ----------

}
--------------------------------------------------
name: 'command-buffer'
{
  CopyImageToBuffer
    src:       'image-42'
    srcLayout: TRANSFER_SRC_OPTIMAL
    dst:       'buffer-33'
      copy { off:(0, 0, 0), ext:(800, 600, 1), COLOR } ---> { [0, 1920000) }
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  COPY ---> HOST
      access: TRANSFER_WRITE ---> HOST_READ
  ----------

}
==================================================
==================================================
Batch in queue: 'Graphics', (0)
Fence: 'fence-0'
--------------------------------------------------
name: 'command-buffer'
{

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  HOST ---> COPY
      access: HOST_WRITE ---> TRANSFER_WRITE
  ----------

  CopyBuffer
    src: 'buffer-2'
    dst: 'buffer-39'
      copy [0, 36) ---> [0, 36)
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  COPY ---> INDEX_INPUT | VERTEX_ATTRIBUTE_INPUT
      access: TRANSFER_WRITE ---> INDEX_READ | VERTEX_ATTRIBUTE_READ
    ImageBarrier:
      name:    'image-43'
      stage:   FRAGMENT_SHADER ---> FRAGMENT_SHADER
      access:  0 ---> SHADER_SAMPLED_READ
      layout:  UNDEFINED ---> SHADER_READ_ONLY_OPTIMAL
  ----------

  BeginRenderPass2
    renderPass:  'render-pass-1'
    color attachment:
      view:    'image-view-35 (image-43)'
      image:   'image-43'
      layout:  SHADER_READ_ONLY_OPTIMAL ---> COLOR_ATTACHMENT_OPTIMAL
      loadOp:  CLEAR
    dependency:
      subpass: External ---> 0
      stage:   FRAGMENT_SHADER ---> COLOR_ATTACHMENT_OUTPUT
      access:  SHADER_SAMPLED_READ ---> COLOR_ATTACHMENT_READ | COLOR_ATTACHMENT_WRITE
  ----------

  BindVertexBuffers
    [0] buffer: 'buffer-39', offset: 0
  ----------

  Draw

  EndRenderPass2
    attachment:
      view:    'image-view-35 (image-43)'
      image:   'image-43'
      layout:  COLOR_ATTACHMENT_OPTIMAL ---> SHADER_READ_ONLY_OPTIMAL
      storeOp: STORE
    dependency:
      subpass: 0 ---> External
      stage:   COLOR_ATTACHMENT_OUTPUT ---> FRAGMENT_SHADER
      access:  COLOR_ATTACHMENT_READ | COLOR_ATTACHMENT_WRITE ---> SHADER_SAMPLED_READ
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    ImageBarrier:
      name:    'image-43'
      stage:   FRAGMENT_SHADER ---> COPY
      access:  SHADER_SAMPLED_READ ---> TRANSFER_READ
      layout:  SHADER_READ_ONLY_OPTIMAL ---> TRANSFER_SRC_OPTIMAL
  ----------

  CopyImageToBuffer
    src:       'image-43'
    srcLayout: TRANSFER_SRC_OPTIMAL
    dst:       'buffer-34'
      copy { off:(0, 0, 0), ext:(800, 600, 1), COLOR } ---> { [0, 1920000) }
  ----------

  PipelineBarrier2
    dependencyFlags: 0
    MemoryBarrier:
      stage:  COPY ---> HOST
      access: TRANSFER_WRITE ---> HOST_READ
  ----------

}
==================================================
